package com.jzr.medical.db1.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.jzr.medical.common.LayEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * PDA动态页面控件
 * </p>
 *
 * @author henry
 * @since 2019-08-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="TPdaPageControl对象", description="PDA动态页面控件")
public class TPdaPageControl extends LayEntity<Integer> {
    private static final long serialVersionUID = 1L;
    public static final String TableName = "t_pda_page_control";
    public static final String Id_ = "id";
    public static final String PageId_ = "page_id";
    public static final String FieldName_ = "field_name";
    public static final String Title_ = "title";
    public static final String Type_ = "type";
    public static final String DefaultValue_ = "default_value";
    public static final String MaxValue_ = "max_value";
    public static final String MinValue_ = "min_value";
    public static final String MaxLen_ = "max_len";
    public static final String IsRequire_ = "is_require";
    public static final String IsReadonly_ = "is_readonly";
    public static final String IsMulti_ = "is_multi";
    public static final String NumPrecision_ = "num_precision";
    public static final String Sort_ = "sort";
    public static final String Status_ = "status";
    public static final String UpdateTime_ = "update_time";
    public static final String UpdateBy_ = "update_by";


    @ApiModelProperty(value = "表主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "PageId")
    @TableField("page_id")
    private Integer pageId;

    @ApiModelProperty(value = "字段名")
    @TableField("field_name")
    private String fieldName;

    @ApiModelProperty(value = "标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "控件类型(text, checkbox, radio, select, date, datetime)")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "默认值")
    @TableField("default_value")
    private String defaultValue;

    @ApiModelProperty(value = "最大值")
    @TableField("max_value")
    private String maxValue;

    @ApiModelProperty(value = "最小值")
    @TableField("min_value")
    private String minValue;

    @ApiModelProperty(value = "最大长度(针对text类型)")
    @TableField("max_len")
    private Integer maxLen;

    @ApiModelProperty(value = "是否必填项")
    @TableField("is_require")
    private Boolean isRequire;

    @ApiModelProperty(value = "是否只读")
    @TableField("is_readonly")
    private Boolean isReadonly;

    @ApiModelProperty(value = "是否可以多选")
    @TableField("is_multi")
    private Boolean isMulti;

    @ApiModelProperty(value = "保留小数点位数")
    @TableField("num_precision")
    private Integer numPrecision;

    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty(value = "状态1=有效，0=无效")
    @TableField("status")
    private Boolean status;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "更新人")
    @TableField("update_by")
    private Integer updateBy;


}
